package com.prokarma.pkmst.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import org.threeten.bp.OffsetDateTime;
/**
 * Response class to be returned by Api
 * @author pkmst
 *
 */
/**
 * 短信提交响应
 */
@ApiModel(description = "短信提交响应")

@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaPKMSTServerCodegen", date = "2021-01-17T02:02:42.424Z")

public class SentSmsRes   {
  @JsonProperty("SmsId")
  private Long smsId = null;

  @JsonProperty("NumberIds")
  
  private List<Long> numberIds = null;

  @JsonProperty("MsgId")
  private String msgId = null;

  @JsonProperty("SendTime")
  private OffsetDateTime sendTime = null;

  @JsonProperty("Success")
  private Boolean success = null;

  @JsonProperty("LinkID")
  private Long linkID = null;

  public SentSmsRes smsId(Long smsId) {
    this.smsId = smsId;
    return this;
  }

   /**
   * 短信唯一标识
   * @return smsId
  **/
  @ApiModelProperty(value = "短信唯一标识")
  public Long getSmsId() {
    return smsId;
  }

  public void setSmsId(Long smsId) {
    this.smsId = smsId;
  }

  public SentSmsRes numberIds(List<Long> numberIds) {
    this.numberIds = numberIds;
    return this;
  }

  public SentSmsRes addNumberIdsItem(Long numberIdsItem) {
    if (this.numberIds == null) {
      this.numberIds = new ArrayList<>();
    }
    this.numberIds.add(numberIdsItem);
    return this;
  }

   /**
   * 短信号码唯一标识
   * @return numberIds
  **/
  @ApiModelProperty(value = "短信号码唯一标识")
  public List<Long> getNumberIds() {
    return numberIds;
  }

  public void setNumberIds(List<Long> numberIds) {
    this.numberIds = numberIds;
  }

  public SentSmsRes msgId(String msgId) {
    this.msgId = msgId;
    return this;
  }

   /**
   * 网关短消息流水号
   * @return msgId
  **/
  @ApiModelProperty(value = "网关短消息流水号")
  public String getMsgId() {
    return msgId;
  }

  public void setMsgId(String msgId) {
    this.msgId = msgId;
  }

  public SentSmsRes sendTime(OffsetDateTime sendTime) {
    this.sendTime = sendTime;
    return this;
  }

   /**
   * 发送时间
   * @return sendTime
  **/
  @ApiModelProperty(value = "发送时间")
  public OffsetDateTime getSendTime() {
    return sendTime;
  }

  public void setSendTime(OffsetDateTime sendTime) {
    this.sendTime = sendTime;
  }

  public SentSmsRes success(Boolean success) {
    this.success = success;
    return this;
  }

   /**
   * 是否成功
   * @return success
  **/
  @ApiModelProperty(value = "是否成功")
  public Boolean isSuccess() {
    return success;
  }

  public void setSuccess(Boolean success) {
    this.success = success;
  }

  public SentSmsRes linkID(Long linkID) {
    this.linkID = linkID;
    return this;
  }

   /**
   * 请求参数原样返回
   * @return linkID
  **/
  @ApiModelProperty(value = "请求参数原样返回")
  public Long getLinkID() {
    return linkID;
  }

  public void setLinkID(Long linkID) {
    this.linkID = linkID;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SentSmsRes sentSmsRes = (SentSmsRes) o;
    return Objects.equals(this.smsId, sentSmsRes.smsId) &&
        Objects.equals(this.numberIds, sentSmsRes.numberIds) &&
        Objects.equals(this.msgId, sentSmsRes.msgId) &&
        Objects.equals(this.sendTime, sentSmsRes.sendTime) &&
        Objects.equals(this.success, sentSmsRes.success) &&
        Objects.equals(this.linkID, sentSmsRes.linkID);
  }

  @Override
  public int hashCode() {
    return Objects.hash(smsId, numberIds, msgId, sendTime, success, linkID);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class SentSmsRes {\n");
    
    sb.append("    smsId: ").append(toIndentedString(smsId)).append("\n");
    sb.append("    numberIds: ").append(toIndentedString(numberIds)).append("\n");
    sb.append("    msgId: ").append(toIndentedString(msgId)).append("\n");
    sb.append("    sendTime: ").append(toIndentedString(sendTime)).append("\n");
    sb.append("    success: ").append(toIndentedString(success)).append("\n");
    sb.append("    linkID: ").append(toIndentedString(linkID)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

